//引入express中间件
var express = require('express');
var app = express();

//指定启动服务器到哪个文件夹，我这边指的是dist文件夹
app.use(express.static('./dist'));

//监听端口为3000
var server = app.listen(8666, function () {
  var host = server.address().address;
  var port = server.address().port;

  console.log('Example app listening at http://%s', host, port);
});
